<!DOCTYPE html>
<html lang="en" class="no-js">
    <head>
        <meta charset="utf-8">
        <title>会员登录</title>
	 
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        
        <!-- CSS -->
        <link rel="stylesheet" href="__PUBLIC__/Member/weixin_dg114/assets/css/reset.css">
        <link rel="stylesheet" href="__PUBLIC__/Member/weixin_dg114/assets/css/supersized.css">
        <link rel="stylesheet" href="__PUBLIC__/Member/weixin_dg114/assets/css/style.css">

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
            <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
<script src="__PUBLIC__/Member/weixin_dg114/assets/js/jquery-1.8.2.min.js"></script>
<script src="__PUBLIC__/Member/weixin_dg114/layer/layer.js"></script>
    </head>

    <body style="background-color:#535353;">
 <script>
$(function(){
	    $("#lo").click(function(){ 
		$("#login").hide();
		$("#reg").show();
 		});
		
		
		$("#re").click(function(){
		$("#login").show();
		$("#reg").hide();
 		});
 	 
	
	}); 
$(document).ready(function(e) {
   var sit = setInterval(function(){
		$.post('{:U('weixinDoLogin')}',{'pass':1},function(data){
			if(data.status == 1){
				clearInterval(sit);
				window.location.href = data.url;
			}
		},'json');
	},2000);
});


  

$(function(){
	
var img_url=$("#test1").attr('src');	
	
 //在这里面输入任何合法的js语句
layer.open({
    type: 1, //page层
    area: ['300px', '340px'],
    title: '微信扫描二维码直接登录微名片',  
    skin: 'layui-layer-molv', //墨绿风格
    shade: 0.6, //遮罩透明度
    shift: 1, //0-6的动画形式，-1不开启
    content: '<div style="padding:0px;"><img src="'+ img_url +'" width="100%"/></div>'
});  

	
	
	});

</script> 
 
         
         <img id="test1"  style="width:300px; height:300px; position:absolute; top:50%; left:50%; margin-left:-150px; margin-top:-150px;" src="https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket={$tiket.ticket}">
          
		
        <!-- Javascript -->
        
        <script src="__PUBLIC__/Member/weixin_dg114/assets/js/supersized.3.2.7.min.js"></script>
        <script src="__PUBLIC__/Member/weixin_dg114/assets/js/supersized-init.js"></script>
        <script src="__PUBLIC__/Member/weixin_dg114/assets/js/scripts.js"></script>

    </body>

</html>


